package com.strongdigit.ioc.beanannotation.javabased;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;

public class StringStore implements Store<String> {

    public void init(){
        System.out.println("im inited");
    }

    public void destory(){
        System.out.println("im destory");
    }

    private ApplicationContext ctx;

    @Autowired
    public void setCtx(ApplicationContext ctx) {
        this.ctx = ctx;
    }

    public ApplicationContext getCtx() {
        return ctx;
    }
}
